<template>
  <div v-cloak>
    <Row>
      <Col span="22">
        <div class="report">
        <Card>
          <p slot="title">新疆维吾尔自治区{{report.institutions_name}}{{ myear }}年单位预算公开</p>
          <Collapse simple value="3">
              <Panel name="1">
                  <span class="panel_title">目录</span>
                  <div slot="content">
                    <p class="sub_title">第一部分 {{report.institutions_name}}单位概况</p>
                    <p>一、主要职能</p>
                    <p>二、机构设置及人员情况</p>
                    <p class="sub_title">第二部分 {{ myear }}年单位预算公开表</p>
                    <p>一、单位收支总体情况表</p>
                    <p>二、单位收入总体情况表</p>
                    <p>三、单位支出总体情况表</p>
                    <p>四、财政拨款收支总体情况表</p>
                    <p>五、一般公共预算支出情况表</p>
                    <p>六、一般公共预算基本支出情况表</p>
                    <p>七、一般公共预算项目支出情况表</p>
                    <p>八、一般公共预算“三公”经费支出情况表</p>
                    <p>九、政府性基金预算支出情况表</p>
                    <p class="sub_title">第三部分 {{ myear }}年单位预算情况说明</p>
                    <p>一、关于{{report.institutions_name}}单位{{ myear }}年收支预算情况的总体说明</p>
                    <p>二、关于{{report.institutions_name}}单位{{ myear }}年收入预算情况说明</p>
                    <p>三、关于{{report.institutions_name}}单位{{ myear }}年支出预算情况说明</p>
                    <p>四、关于{{report.institutions_name}}单位{{ myear }}年财政拨款收支预算情况的总体说明</p>
                    <p>五、关于{{report.institutions_name}}单位{{ myear }}年一般公共预算当年拨款情况说明</p>
                    <p>六、关于{{report.institutions_name}}单位{{ myear }}年一般公共预算基本支出情况说明</p>
                    <p>七、关于{{report.institutions_name}}单位{{ myear }}年项目支出情况说明</p>
                    <p>八、关于{{report.institutions_name}}单位{{ myear }}年一般公共预算“三公”经费预算情况说明</p>
                    <p>九、关于{{report.institutions_name}}单位{{ myear }}年政府性基金预算拨款情况说明</p>
                    <p>十、其他重要事项的情况说明</p>
                    <p class="sub_title">第四部分 名词解释</p>
                  </div>
              </Panel>
              <Panel name="2">
                  <span class="panel_title">第一部分 {{report.institutions_name}}单位概况</span>
                  <div slot="content">
                    <p class="sub_title">一、主要职能</p>
                    <Input type="textarea" v-model="report.main_function" rows="6"></Input>
                    <p class="sub_title">二、机构设置及人员情况</p>
                    <div>
                      <div style="margin:10px">
                        <RadioGroup v-model="report.has_subordinate_unit">
                          <Radio :label="1">有下属预算单位</Radio>
                          <Radio :label="0">无下属预算单位</Radio>
                        </RadioGroup>
                      </div>
                      <p class="indent" v-if="report.has_subordinate_unit==1">情况一：有下属预算单位按以下内容说明：</p>
                      <p class="indent" v-if="report.has_subordinate_unit==1">
                        从预算单位构成看,{{report.institutions_name}}单位的部门预算包括：{{report.institutions_name}}本级预算及下属<Input class="num_input" v-model="report.subordinate_unit_num"/>家预算单位在内的汇总预算。</p>
                      <p class="indent" v-if="report.has_subordinate_unit==0">情况二：无下属预算单位按以下内容说明：</p>
                      <p class="indent">{{report.institutions_name}}<span v-if="report.has_subordinate_unit==1">单位本级</span><span v-if="report.has_subordinate_unit==0">无下属预算单位 ，</span>下设{{report.office_data.length}}个科室，分别是：{{report.office_data.join('、')}}。</p>
                      <div v-for="(item,i) in report.office_data" :key="i" class="office_data">
                        <span class="sub_title">科室名称</span>
                        <Input style="width:300px;" v-model="report.office_data[i]"/>
                        <Button type="primary" @click="addOffice">添加科室</Button>
                        <Button type="error" @click="delOffice(i)">删除科室</Button>
                      </div>
                      <p class="indent" v-if="report.has_subordinate_unit==1">本单位中，行政单位<Input class="num_input" v-model="report.administrative_unit_num"/>家，事业单位<Input class="num_input" v-model="report.public_unit_num"/>家，纳入{{report.institutions_name}}部门{{ myear }}年部门预算编制范围的二级预算单位包括：</p>
                      <div v-if="report.has_subordinate_unit==1">
                        <div v-for="(item,i) in report.subordinate_unit_data" :key="i" class="office_data">
                          <span class="sub_title">单位名称</span>
                          <Input style="width:300px;" v-model="report.subordinate_unit_data[i]"/>
                          <Button type="primary" @click="addUnit">添加单位</Button>
                          <Button type="error" @click="delUnit(i)">删除单位</Button>
                        </div>
                      </div>
                      <p class="indent">{{report.institutions_name}}单位编制数<Input class="num_input" v-model="report.staffing_num"/>，实有人数<Input class="num_input" v-model="report.actual_num"/>人，其中：
                      在职<Input class="num_input" v-model="report.staffing_data.onJob.count"/>人，<Input class="select-input" v-model="report.staffing_data.onJob.changeNum">
                      <Select class="input-select" v-model="report.staffing_data.onJob.changeType" slot="prepend">
                        <Option label="增加" :value="1"></Option>
                        <Option label="减少" :value="0"></Option>
                      </Select>
                      </Input>人；
                      退休<Input class="num_input" v-model="report.staffing_data.retirement.count"/>人，<Input class="select-input" v-model="report.staffing_data.retirement.changeNum">
                      <Select class="input-select" v-model="report.staffing_data.retirement.changeType" slot="prepend">
                        <Option label="增加" :value="1"></Option>
                        <Option label="减少" :value="0"></Option>
                      </Select>
                      </Input>人；
                      离休<Input class="num_input" v-model="report.staffing_data.retire.count"/>人，<Input class="select-input" v-model="report.staffing_data.retire.changeNum">
                      <Select class="input-select" v-model="report.staffing_data.retire.changeType" slot="prepend">
                        <Option label="增加" :value="1"></Option>
                        <Option label="减少" :value="0"></Option>
                      </Select>
                      </Input>人。</p>
                    </div>
                  </div>
              </Panel>
              <Panel name="3">
                  <span class="panel_title">第二部分 {{ myear }}年单位预算公开表</span>
                  <div slot="content">
                    <p class="sub_title">表1</p>
                    <div class="table_content">
                      <div class="table_title">单位收支总体情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table1">
                        <table>
                          <tr>
                            <th colspan="2">收 入</th>
                            <th colspan="2">支 出</th>
                          </tr>
                          <tr>
                            <th>项 目</th>
                            <th>预算数</th>
                            <th>功能分类</th>
                            <th>预算数</th>
                          </tr>
                          <tr v-for="(item,key) in table1" :key="key">
                            <td :class="{ pl5:[1,2,3].indexOf(key) != -1 }">{{item[0]}}</td>
                            <td>{{incomeCount[item[1]] ? incomeCount[item[1]].toFixed(2) : ''}}</td>
                            <td>{{item[2]}}</td>
                            <td>{{budgetCount[item[3]] ? budgetCount[item[3]].toFixed(2) : ''}}</td>
                          </tr>
                          <tr>
                            <td>收入总计</td>
                            <td>{{incomeCount.income_total&&incomeCount.income_total.toFixed(2)}}</td>
                            <td>支出总计</td>
                            <td>{{budgetCount.budget_total&&budgetCount.budget_total.toFixed(2)}}</td>
                          </tr>
                        </table>
                      </div>
                    </div>
                    <p class="sub_title">表2</p>
                    <div class="table_content">
                      <div class="table_title">单位收入总体情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table2">
                        <table>
                          <tr>
                            <th colspan="3" width="100">功能分类科目编码</th>
                            <th rowspan="2">功能分类科目名称</th>
                            <th rowspan="2">总 计</th>
                            <th rowspan="2">一般公共预算拨款</th>
                            <th rowspan="2">政府性基金预算拨款</th>
                            <th rowspan="2">国有资本经营预算</th>
                            <th rowspan="2">财政专户（教育收费）</th>
                            <th rowspan="2">事业收入</th>
                            <th rowspan="2">事业单位经营收入</th>
                            <th rowspan="2">单位其他资金收入</th>
                          </tr>
                          <tr>
                            <th>类</th>
                            <th>款</th>
                            <th>项</th>
                          </tr>
                          <tr v-for="(item,k) in countDetailData.list" :key="k">
                            <td>{{item.functional_category_code_class}}</td>
                            <td>{{item.functional_category_code_fund}}</td>
                            <td>{{item.functional_category_code_item}}</td>
                            <td>{{item.name}}</td>
                            <td class="text-align-right">{{item.income_total ? item.income_total.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.general_public_budget_count ? item.general_public_budget_count.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.government_budgets_count ? item.government_budgets_count.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.government_capital_management_budget_count ? item.government_capital_management_budget_count.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.special_financial_account_count ? item.special_financial_account_count.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.utility_income_count ? item.utility_income_count.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.institution_management_income_count ? item.institution_management_income_count.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.institution_other_income_count ? item.institution_other_income_count.toFixed(2) : ''}}</td>
                          </tr>
                          <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>合计</td>
                            <td class="text-align-right">{{countDetailData.income_total?countDetailData.income_total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countDetailData.general_public_budget_count_total?countDetailData.general_public_budget_count_total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countDetailData.government_budgets_count_total?countDetailData.government_budgets_count_total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countDetailData.government_capital_management_budget_count_total?countDetailData.government_capital_management_budget_count_total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countDetailData.special_financial_account_count_total?countDetailData.special_financial_account_count_total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countDetailData.utility_income_count_total?countDetailData.utility_income_count_total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countDetailData.institution_management_income_count_total?countDetailData.institution_management_income_count_total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countDetailData.institution_other_income_count_total?countDetailData.institution_other_income_count_total.toFixed(2):''}}</td>
                          </tr>
                        </table>
                      </div>
                    </div>
                    <p class="sub_title">表3</p>
                    <div class="table_content">
                      <div class="table_title">单位支出总体情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table3">
                        <table>
                          <tr>
                            <th colspan="4">项目</th>
                            <th colspan="3">支出预算</th>
                          </tr>
                          <tr>
                            <th colspan="3" width="100">功能分类科目编码</th>
                            <th rowspan="2">功能分类科目名称</th>
                            <th rowspan="2">合计</th>
                            <th rowspan="2">基本支出</th>
                            <th rowspan="2">项目支出</th>
                          </tr>
                          <tr>
                            <th>类</th>
                            <th>款</th>
                            <th>项</th>
                          </tr>
                          <!-- <tr v-for="(item,k) in table3Data.list" :key="k">
                            <td>{{item.functional_category_code_class}}</td>
                            <td>{{item.functional_category_code_fund}}</td>
                            <td>{{item.functional_category_code_item}}</td>
                            <td>{{item.name}}</td>
                            <td class="text-align-right">{{item.total.toFixed(2)}}</td>
                            <td class="text-align-right">{{item.project_category_code_obj[1] ? item.project_category_code_obj[1].total.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.project_category_code_obj[2] ? item.project_category_code_obj[2].total.toFixed(2) : ''}}</td>
                          </tr> -->
                          <tr v-for="(item, idx) in mtable3" :key="idx">
                            <td>{{item.class}}</td>
                            <td>{{item.fund}}</td>
                            <td>{{item.item}}</td>
                            <td>{{item.name}}</td>
                            <td class="text-align-right">
                              <span v-show="item.total != 0.00">{{ item.total }}</span>
                            </td>
                            <td class="text-align-right">
                              <span v-show="item.jbzc != 0.00">{{ item.jbzc }}</span>
                            </td>
                            <td class="text-align-right">
                              <span v-show="item.xmzc != 0.00">{{ item.xmzc }}</span>
                            </td>
                          </tr>
                          <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>合计</td>
                            <!-- <td class="text-align-right">{{table3Data.table3Total ? table3Data.table3Total==0 ? '' : table3Data.table3Total.toFixed(2):''}}</td> -->
                            <!-- <td class="text-align-right">{{table3Data.table3Total1 ? table3Data.table3Total1==0 ? '' : table3Data.table3Total1.toFixed(2):''}}</td> -->
                            <!-- <td class="text-align-right">{{table3Data.table3Total2 ? table3Data.table3Total2==0 ? '' : table3Data.table3Total2.toFixed(2):''}}</td> -->
                            <td class="text-align-right">{{ mthisyear.total.toFixed(2) }}</td>
                            <td class="text-align-right">{{ mthisyear.jbzc.toFixed(2) }}</td>
                            <td class="text-align-right">{{ mthisyear.xmzc.toFixed(2) }}</td>
                          </tr>
                        </table>
                      </div>
                    </div>
                    <p class="sub_title">表4</p>
                    <div class="table_content">
                      <div class="table_title">财政拨款收支预算总体情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table4">
                        <table>
                          <tr>
                            <th colspan="3">财政拨款收入</th>
                            <th colspan="5">财政拨款支出</th>
                          </tr>
                          <tr>
                            <th colspan="2">项 目</th>
                            <th>合计</th>
                            <th>功 能 分 类</th>
                            <th>合计</th>
                            <th>一般公共预算</th>
                            <th>政府性基金预算</th>
                            <th>国有资本经营预算</th>
                          </tr>
                          <!-- <tr v-for="(item,key) in table1" :key="key">
                            <td :class="{ pl5:[1,2,3].indexOf(key) != -1 }">{{ (key &lt; 4) ? item[0] : ''}}</td>
                            <td class="text-align-right">{{(key &lt; 4) ?(incomeCount[item[1]] ? incomeCount[item[1]].toFixed(2) : ''):''}}</td>
                            <td class="text-align-right">{{item[2]}}</td>
                            <td class="text-align-right">{{budgetCountData.list[item[3]] ? budgetCountData.list[item[3]]['total']==0 ? '' : budgetCountData.list[item[3]]['total'].toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{budgetCountData.list[item[3]] ? budgetCountData.list[item[3]]['general_public_budget_count']==0 ? '' : budgetCountData.list[item[3]]['general_public_budget_count'].toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{budgetCountData.list[item[3]] ? budgetCountData.list[item[3]]['government_budgets_count']==0 ? '' : budgetCountData.list[item[3]]['government_budgets_count'].toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{budgetCountData.list[item[3]] ? budgetCountData.list[item[3]]['government_capital_management_budget_count']==0 ? '' : budgetCountData.list[item[3]]['government_capital_management_budget_count'].toFixed(2) : ''}}</td>
                          </tr> -->
                          <tr v-for="(item,idx) in mtable4" :key="idx">
                            <td colspan="2">{{ item.xm }}</td>
                            <td><span v-show="item.hj != 0.00">{{ item.hj }}</span></td>
                            <td class="text-align-right">{{ item.code }}{{ item.name }}</td>
                            <td class="text-align-right">
                              <span v-show="item.total != 0.00">{{ item.total }}</span>
                            </td>
                            <td class="text-align-right">
                              <span v-show="item.yiban != 0.00">{{ item.yiban }}</span>
                            </td>
                            <td class="text-align-right">
                              <span v-show="item.zhengfu != 0.00">{{ item.zhengfu }}</span>
                            </td>
                            <td class="text-align-right">
                              <span v-show="item.guoyou != 0.00">{{ item.guoyou }}</span>
                            </td>
                          </tr>
                          <tr>
                            <td colspan="2">收入总计</td>
                            <!-- <td class="text-align-right">{{incomeCount.fiscal_appropriation_count&&incomeCount.fiscal_appropriation_count.toFixed(2)}}</td> -->
                            <td class="text-align-right">{{ mthisyear.fiscal_appropriation.toFixed(2) }}</td>
                            <td>支出总计</td>
                            <!-- <td class="text-align-right">{{budgetCount.budget_total&&budgetCount.budget_total.toFixed(2)}}</td> -->
                            <td class="text-align-right">
                              <span v-show="mthisyear.fiscal_appropriation != 0.00">{{ mthisyear.fiscal_appropriation.toFixed(2) }}</span>
                            </td>
                            <!-- <td class="text-align-right">{{budgetCountData.general_public_budget_count==0 ? '':budgetCountData.general_public_budget_count.toFixed(2)}}</td> -->
                            <td class="text-align-right">
                              <span v-show="mthisyear.general_public_budget != 0.00">{{ mthisyear.general_public_budget.toFixed(2) }}</span>
                            </td>
                            <!-- <td class="text-align-right">{{budgetCountData.government_budgets_count==0 ? '':budgetCountData.government_budgets_count.toFixed(2)}}</td> -->
                            <td class="text-align-right">
                              <span v-show="mthisyear.government_budgets != 0.00">{{ mthisyear.government_budgets.toFixed(2) }}</span>
                            </td>
                            <!-- <td class="text-align-right">{{budgetCountData.government_capital_management_budget_count==0 ? '':budgetCountData.government_capital_management_budget_count.toFixed(2)}}</td> -->
                            <td class="text-align-right">
                              <span v-show="mthisyear.gov_capital != 0.00">{{ mthisyear.gov_capital.toFixed(2) }}</span>
                            </td>
                          </tr>
                        </table>
                      </div>
                    </div>
                    <p class="sub_title">表5</p>
                    <div class="table_content">
                      <div class="table_title">一般公共预算支出情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table5">
                        <table>
                          <tr>
                            <th colspan="4">项目</th>
                            <th colspan="3">一般公共预算支出</th>
                          </tr>
                          <tr>
                            <th colspan="3" width="100">功能分类科目编码</th>
                            <th rowspan="2">功能分类科目名称</th>
                            <th rowspan="2">合计</th>
                            <th rowspan="2">基本支出</th>
                            <th rowspan="2">项目支出</th>
                          </tr>
                          <tr>
                            <th>类</th>
                            <th>款</th>
                            <th>项</th>
                          </tr>
                          <!-- <tr v-for="(item,k) in general_public_budget_data.list" :key="k">
                            <td>{{item.functional_category_code_class}}</td>
                            <td>{{item.functional_category_code_fund}}</td>
                            <td>{{item.functional_category_code_item}}</td>
                            <td>{{item.name}}</td>
                            <td class="text-align-right">{{item.total.toFixed(2)}}</td>
                            <td class="text-align-right">{{item.project_category_code_obj[1] ? item.project_category_code_obj[1].total.toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.project_category_code_obj[2] ? item.project_category_code_obj[2].total.toFixed(2) : ''}}</td>
                          </tr> -->
                          <tr v-for="(item, idx) in mtable5" :key="idx">
                            <td>{{item.class}}</td>
                            <td>{{item.fund}}</td>
                            <td>{{item.item}}</td>
                            <td>{{item.name}}</td>
                            <td class="text-align-right">
                              <span v-show="item.total != 0.00">{{ item.total }}</span>
                            </td>
                            <td class="text-align-right">
                              <span v-show="item.jbzc != 0.00">{{ item.jbzc }}</span>
                            </td>
                            <td class="text-align-right">
                              <span v-show="item.xmzc != 0.00">{{ item.xmzc }}</span>
                            </td>
                          </tr>
                          <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>合计</td>
                            <!-- <td class="text-align-right">{{general_public_budget_data.general_public_budget_data_total?general_public_budget_data.general_public_budget_data_total.toFixed(2) :''}}</td> -->
                            <!-- <td class="text-align-right">{{general_public_budget_data.general_public_budget_data_total1?general_public_budget_data.general_public_budget_data_total1.toFixed(2) :''}}</td> -->
                            <!-- <td class="text-align-right">{{general_public_budget_data.general_public_budget_data_total2?general_public_budget_data.general_public_budget_data_total2.toFixed(2) :''}}</td> -->
                            <td class="text-align-right">{{ mthisyear.general_public_budget.toFixed(2) }}</td>
                            <td class="text-align-right">{{ mthisyear.jbzc1.toFixed(2) }}</td>
                            <td class="text-align-right">{{ mthisyear.xmzc1.toFixed(2) }}</td>
                          </tr>
                        </table>
                      </div>
                    </div>
                    <p class="sub_title">表6</p>
                    <div class="table_content">
                      <div class="table_title">一般公共预算基本支出情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table6">
                        <table>
                          <tr>
                            <th colspan="3">项目</th>
                            <th colspan="3">一般公共预算基本支出</th>
                          </tr>
                          <tr>
                            <th colspan="2" width="100">经济分类科目编码</th>
                            <th rowspan="2">经济分类科目名称</th>
                            <th rowspan="2">合计</th>
                            <th rowspan="2">人员经费</th>
                            <th rowspan="2">公用经费</th>
                          </tr>
                          <tr>
                            <th>类</th>
                            <th>款</th>
                          </tr>
                          <tr v-for="(item,k) in economicsDetailData.list" :key="k">
                            <td>{{item.economics_category_code_class}}</td>
                            <td>{{item.economics_category_code_fund}}</td>
                            <td>{{item.name}}</td>
                            <td class="text-align-right">{{item.total.toFixed(2)}}</td>
                            <td class="text-align-right">{{item.economics_category_code_class=='301'||item.economics_category_code_class=='303'?item.total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_code_class=='302'?item.total.toFixed(2):''}}</td>
                          </tr>
                          <tr>
                            <td></td>
                            <td></td>
                            <td>合计</td>
                            <td class="text-align-right">{{economicsDetailData.economicsDetailTotal==0 ? '' : economicsDetailData.economicsDetailTotal.toFixed(2)}}</td>
                            <td class="text-align-right">{{economicsDetailData.economicsPeopleTotal==0 ? '' : economicsDetailData.economicsPeopleTotal.toFixed(2)}}</td>
                            <td class="text-align-right">{{economicsDetailData.economicsPublicTotal==0 ? '' : economicsDetailData.economicsPublicTotal.toFixed(2)}}</td>
                          </tr>
                        </table>
                      </div>
                    </div>
                    <p class="sub_title">表7</p>
                    <div class="table_content">
                      <div class="table_title">一般公共预算项目支出情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table7">
                        <table>
                          <tr>
                            <th colspan="3" width="100">功能分类科目编码</th>
                            <th rowspan="2">科目</th>
                            <th rowspan="2">项目名称</th>
                            <th rowspan="2">项目支出合计</th>
                            <th style="max-width:100px" rowspan="2">工资福利支出</th>
                            <th style="max-width:100px" rowspan="2">商品和服务支出</th>
                            <th style="max-width:100px" rowspan="2">对个人和家庭的补助</th>
                            <th style="max-width:100px" rowspan="2">债务利息及费用支出</th>
                            <th style="max-width:100px" rowspan="2">资本性支出（基本建设）</th>
                            <th style="max-width:100px" rowspan="2">资本性支出</th>
                            <th style="max-width:100px" rowspan="2">对企业补助（基本建设）</th>
                            <th style="max-width:100px" rowspan="2">对企业补助</th>
                            <th style="max-width:100px" rowspan="2">对社会保障基金补助</th>
                            <th style="max-width:100px" rowspan="2">其他支出</th>
                          </tr>
                          <tr>
                            <th>类</th>
                            <th>款</th>
                            <th>项</th>
                          </tr>
                          <!-- <tr v-for="(item,k) in countProjectData.list" :key="k">
                            <td>{{item.functional_category_code_class}}</td>
                            <td>{{item.functional_category_code_fund}}</td>
                            <td>{{item.functional_category_code_item}}</td>
                            <td>{{item.name}}</td>
                            <td>{{item.project_name}}</td>
                            <td class="text-align-right">{{item.total.toFixed(2)}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['工资福利支出']?item.economics_category_name_class_obj['工资福利支出'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['商品和服务支出']?item.economics_category_name_class_obj['商品和服务支出'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['对个人和家庭的补助']?item.economics_category_name_class_obj['对个人和家庭的补助'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['债务利息及费用支出']?item.economics_category_name_class_obj['债务利息及费用支出'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['资本性支出（基本建设）']?item.economics_category_name_class_obj['资本性支出（基本建设）'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['资本性支出']?item.economics_category_name_class_obj['资本性支出'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['对企业补助（基本建设）']?item.economics_category_name_class_obj['对企业补助（基本建设）'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['对企业补助']?item.economics_category_name_class_obj['对企业补助'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['对社会保障基金补助']?item.economics_category_name_class_obj['对社会保障基金补助'].total.toFixed(2):''}}</td>
                            <td class="text-align-right">{{item.economics_category_name_class_obj['其他支出']?item.economics_category_name_class_obj['其他支出'].total.toFixed(2):''}}</td>
                          </tr> -->
                          <tr v-for="(item, idx) in mtable7" :key="idx">
                            <td>{{ item.class }}</td>
                            <td>{{ item.fund }}</td>
                            <td>{{ item.item }}</td>
                            <td>{{ item.name }}</td>
                            <td>{{ item.projectname }}</td>
                            <td class="text-align-right"> <span v-show="item.total != 0.00">{{ item.total}}</span></td>
                            <td class="text-align-right"> <span v-show="item.fuli != 0.00">{{ item.fuli}}</span></td>
                            <td class="text-align-right"> <span v-show="item.shangpin != 0.00">{{ item.shangpin}}</span></td>
                            <td class="text-align-right"> <span v-show="item.geren != 0.00">{{ item.geren}}</span></td>
                            <td class="text-align-right"> <span v-show="item.zhaiwu != 0.00">{{ item.zhaiwu}}</span></td>
                            <td class="text-align-right"> <span v-show="item.zibenjianshe != 0.00">{{ item.zibenjianshe}}</span></td>
                            <td class="text-align-right"> <span v-show="item.ziben != 0.00">{{ item.ziben}}</span></td>
                            <td class="text-align-right"> <span v-show="item.qiyejianshe != 0.00">{{ item.qiyejianshe}}</span></td>
                            <td class="text-align-right"> <span v-show="item.qiye != 0.00">{{ item.qiye}}</span></td>
                            <td class="text-align-right"> <span v-show="item.baozhang != 0.00">{{ item.baozhang}}</span></td>
                            <td class="text-align-right"> <span v-show="item.qita != 0.00">{{ item.qita}}</span></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>合计</td>
                            <!-- <td class="text-align-right">{{countProjectData.countProjectTotal==0 ? '' : countProjectData.countProjectTotal.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal1==0 ? '' : countProjectData.countProjectTotal1.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal2==0 ? '' : countProjectData.countProjectTotal2.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal3==0 ? '' : countProjectData.countProjectTotal3.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal4==0 ? '' : countProjectData.countProjectTotal4.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal5==0 ? '' : countProjectData.countProjectTotal5.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal6==0 ? '' : countProjectData.countProjectTotal6.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal7==0 ? '' : countProjectData.countProjectTotal7.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal8==0 ? '' : countProjectData.countProjectTotal8.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal9==0 ? '' : countProjectData.countProjectTotal9.toFixed(2)}}</td>
                            <td class="text-align-right">{{countProjectData.countProjectTotal10==0 ? '' : countProjectData.countProjectTotal10.toFixed(2)}}</td> -->
                            <td class="text-align-right"><span v-show="zdata.total7 != 0.00">{{ zdata.total7 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table71 != 0.00">{{ zdata.table71 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table72 != 0.00">{{ zdata.table72 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table73 != 0.00">{{ zdata.table73 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table74 != 0.00">{{ zdata.table74 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table75 != 0.00">{{ zdata.table75 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table76 != 0.00">{{ zdata.table76 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table77 != 0.00">{{ zdata.table77 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table78 != 0.00">{{ zdata.table78 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table79 != 0.00">{{ zdata.table79 }}</span></td>
                            <td class="text-align-right"><span v-show="zdata.table710 != 0.00">{{ zdata.table710 }}</span></td>
                          </tr>
                        </table>
                      </div>
                    </div>
                    <p class="sub_title">表8</p>
                    <div class="table_content">
                      <div class="table_title">一般公共预算“三公”经费支出情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table8">
                        <table>
                          <tr>
                            <th rowspan="2">合计</th>
                            <th rowspan="2">因公出国（境）费</th>
                            <th colspan="3">公务用车购置及运行费</th>
                            <th rowspan="2">公务接待费</th>
                          </tr>
                          <tr>
                            <th>合计</th>
                            <th>公务用车购置费</th>
                            <th>公务用车运行费</th>
                          </tr>
                          <tr>
                            <!-- <td class="text-align-right">{{threePublic.total?parseFloat(threePublic.total).toFixed(2):''}}</td>
                            <td class="text-align-right">{{threePublic[30212]?parseFloat(threePublic[30212]).toFixed(2):''}}</td>
                            <td class="text-align-right">{{((threePublic[30913]?parseFloat(threePublic[30913]) : 0)+ (threePublic[31013]?parseFloat(threePublic[31013]):0)+(threePublic[30231]?parseFloat(threePublic[30231]):0))==0?'':((threePublic[30913]?parseFloat(threePublic[30913]) : 0)+ (threePublic[31013]?parseFloat(threePublic[31013]):0)+(threePublic[30231]?parseFloat(threePublic[30231]):0)).toFixed(2)}}</td>
                            <td class="text-align-right">{{(threePublic[30913]?parseFloat(threePublic[30913]):0+ threePublic[31013] ? parseFloat(threePublic[31013]):0)==0 ?'':(threePublic[30913]?parseFloat(threePublic[30913]):0+ threePublic[31013] ? parseFloat(threePublic[31013]):0).toFixed(2)}}</td>
                            <td class="text-align-right">{{threePublic[30231]?parseFloat(threePublic[30231]).toFixed(2):''}}</td>
                            <td class="text-align-right">{{threePublic[30217]?parseFloat(threePublic[30217]).toFixed(2):''}}</td> -->
                            <td class="text-align-right">
                              <span v-show="mthisyear.sgtotal != 0.00">{{mthisyear.sgtotal.toFixed(2)}}</span>
                            </td>
                            <td class="text-align-right">
                              <span v-show="mthisyear.ygcg != 0.00">{{mthisyear.ygcg.toFixed(2)}}</span>
                              <!-- {{mthisyear.ygcg.toFixed(2)}} -->
                            </td>
                            <td class="text-align-right">
                              <span v-show="(mthisyear.gwycgz + mthisyear.gwycwh) != 0.00">
                                {{(mthisyear.gwycgz + mthisyear.gwycwh).toFixed(2)}}
                              </span>
                              <!-- {{ (mthisyear.gwycgz + mthisyear.gwycwh).toFixed(2) }} -->
                            </td>
                            <td class="text-align-right">
                              <span v-show="mthisyear.gwycgz != 0.00">{{mthisyear.gwycgz.toFixed(2)}}</span>
                              <!-- {{mthisyear.gwycgz.toFixed(2)}} -->
                            </td>
                            <td class="text-align-right">
                              <span v-show="mthisyear.gwycwh != 0.00">{{mthisyear.gwycwh.toFixed(2)}}</span>
                              <!-- {{mthisyear.gwycwh.toFixed(2)}} -->
                            </td>
                            <td class="text-align-right">
                              <span v-show="mthisyear.gwjdf != 0.00">{{mthisyear.gwjdf.toFixed(2)}}</span>
                              <!-- {{mthisyear.gwjdf.toFixed(2)}} -->
                            </td>
                          </tr>
                        </table>
                      </div>
                    </div>
                    <p class="sub_title">表9</p>
                    <div class="table_content">
                      <div class="table_title">政府性基金预算支出情况表</div>
                      <div class="desc"><span>编制单位：{{report.institutions_name}}</span><span>单位：万元</span></div>
                      <div class="table9">
                        <table>
                          <tr>
                            <th colspan="4">项目</th>
                            <th colspan="3">政府性基金预算支出</th>
                          </tr>
                          <tr>
                            <th colspan="3" width="100">功能分类科目编码</th>
                            <th rowspan="2">功能分类科目名称</th>
                            <th rowspan="2">合计</th>
                            <th rowspan="2">基本支出</th>
                            <th rowspan="2">项目支出</th>
                          </tr>
                          <tr>
                            <th>类</th>
                            <th>款</th>
                            <th>项</th>
                          </tr>
                          <!-- <tr v-for="(item,k) in countGovernmentData.list" :key="k">
                            <td>{{item.functional_category_code_class}}</td>
                            <td>{{item.functional_category_code_fund}}</td>
                            <td>{{item.functional_category_code_item}}</td>
                            <td>{{item.name}}</td>
                            <td class="text-align-right">{{parseFloat(item.total).toFixed(2)}}</td>
                            <td class="text-align-right">{{item.project_category_code==1 ? parseFloat(item.total).toFixed(2) : ''}}</td>
                            <td class="text-align-right">{{item.project_category_code==2 ? parseFloat(item.total).toFixed(2) : ''}}</td>
                          </tr> -->
                          <tr v-for="(item,idx) in mtable9" :key="idx">
                            <td>{{ item.class }}</td>
                            <td>{{ item.fund }}</td>
                            <td>{{ item.item }}</td>
                            <td>{{ item.name }}</td>
                            <td class="text-align-right">{{ item.total }}</td>
                            <td class="text-align-right">{{ item.jbzc }}</td>
                            <td class="text-align-right">{{ item.xmzc }}</td>
                          </tr>
                          <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>合计</td>
                            <!-- <td class="text-align-right">{{countGovernmentData.countGovernmentTotal?countGovernmentData.countGovernmentTotal.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countGovernmentData.countGovernmentBaseTotal?countGovernmentData.countGovernmentBaseTotal.toFixed(2):''}}</td>
                            <td class="text-align-right">{{countGovernmentData.countGovernmentProjectTotal?countGovernmentData.countGovernmentProjectTotal.toFixed(2):''}}</td> -->
                            <td class="text-align-right">{{ mthisyear.government_budgets.toFixed(2) }}</td>
                            <td class="text-align-right">{{ zdata.zf_jbzc }}</td>
                            <td class="text-align-right">{{ zdata.zf_xmzc }}</td>
                          </tr>
                        </table>
                      </div>
                    </div>
                  </div>
              </Panel>
              <Panel name="4">
                  <span class="panel_title">第三部分 {{ myear }}年单位预算情况说明</span>
                  <div slot="content">
                    <!-- 1111111111111111111 -->
                    <p class="sub_title">一、关于{{report.institutions_name}}单位{{ myear }}年收支预算情况的总体说明</p>
                    <p class="indent">按照全口径预算的原则，{{report.institutions_name}}单位{{ myear }}年所有收入和支出均纳入单位预算管理。收支总预算{{mthisyear.total.toFixed(2)}}万元。</p>
                    <p class="indent">
                      收入预算包括：
                      {{mthisyear.include1}}
                      <!-- <span v-if="mthisyear.general_public_budget != 0.00">一般公共预算{{mthisyear.general_public_budget.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.government_budgets != 0.00">政府性基金预算{{mthisyear.government_budgets.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.utility_income != 0.00">事业收入{{mthisyear.utility_income.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.institution_management_income != 0.00">事业单位经营收入{{mthisyear.institution_management_income.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.institution_other_income != 0.00">单位其他资金收入{{mthisyear.institution_other_income.toFixed(2)}}万元。</span> -->
                      <!-- <span v-for="(item, idx, index) in others3" :key="index">
                        <span v-show="item.total != 0.00"><span v-show="index !=0">、</span>{{item.title}}预算{{item.total.toFixed(2)}}万元</span>
                      </span> -->
                      <!-- 。 -->
                    </p>
                    <p v-if="zcbudgetlists2" class="indent">
                      支出预算包括：
                      <span v-for="(item, idx, index) in zcbudgetlists2" :key="idx">
                        <span v-if="index !=0">、</span>
                        {{ item.title }}{{ item.total }}万元
                      </span>
                      。
                      <!-- <span v-if="mthisyear.shbzjyzc!=0.00">社会保障和就业支出{{mthisyear.shbzjyzc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.wsjkzc!=0.00">卫生健康支出{{mthisyear.wsjkzc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.jnhbzc!=0.00">节能环保支出{{mthisyear.jnhbzc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.cxsqzc!=0.00">城乡社区支出{{mthisyear.cxsqzc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.nlszc!=0.00">农林水支出{{mthisyear.nlszc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.zrzyhyqxzc!=0.00">自然资源海洋气象等支出{{mthisyear.zrzyhyqxzc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.zfbzzc!=0.00">住房保障支出{{mthisyear.zfbzzc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.zhfzzc!=0.00">灾害防治及应急管理支出{{mthisyear.zhfzzc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.ybggfwzc!=0.00">一般公共服务支出{{mthisyear.ybggfwzc.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.qtzc!=0.00">其他支出{{mthisyear.qtzc.toFixed(2)}}万元。</span> -->
                    </p>
                    <!-- 2222222222222222222 -->
                    <p class="sub_title">二、关于{{report.institutions_name}}单位{{ myear }}年收入预算情况说明</p>
                    <p class="indent">{{report.institutions_name}}单位收入预算{{ mthisyear.total.toFixed(2) }}万元，其中：</p>
                    <!-- 一般 -->
                    <p v-if="mthisyear.general_public_budget != 0.00" class="indent">一般公共预算{{ mthisyear.general_public_budget.toFixed(2) }}万元，占{{ Math.abs(mcalc.v1).toFixed(2) }}%，比上年预算{{ judge(mcalc.v2) }}{{ Math.abs(mcalc.v2).toFixed(2) }}万元，{{judge2(mcalc.v2)}}{{ Math.abs(mcalc.v3).toFixed(2)}}%，主要原因是:</p>
                    <p v-show="mthisyear.general_public_budget != 0.00" v-else class="indent">一般公共预算未安排。</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.general_public_budget">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason1" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 政府性基金 -->
                    <p v-if="mthisyear.government_budgets != 0.00" class="indent">政府性基金预算{{ mthisyear.government_budgets.toFixed(2) }}万元，占{{ Math.abs(mcalc.v4).toFixed(2)}}%，比上年预算{{ judge(mcalc.v5) }}{{ Math.abs(mcalc.v5).toFixed(2)}}万元，{{ judge2(mcalc.v5 ) }}{{ Math.abs(mcalc.v6).toFixed(2)}}%，主要原因是:</p>
                    <p v-else class="indent">政府性基金预算未安排。</p>
                    <p v-show="mthisyear.government_budgets != 0.00" class="olddata">
                      <Input disabled v-model="mlastyear.government_budgets">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p v-show="mthisyear.government_budgets != 0.00" class="indent textarea">
                      <Input v-model="report.reason2" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 国有资本经营 -->
                    <!-- <p class="indent">国有资本经营预算未安排。</p> -->
                    <p v-if="mthisyear.gov_capital != 0.00" class="indent">国有资本经营预算{{ mthisyear.gov_capital.toFixed(2) }}万元，占{{ Math.abs(mcalc.v70).toFixed(2)}}%，比上年预算{{ judge(mcalc.v71) }}{{ Math.abs(mcalc.v71).toFixed(2)}}万元，{{ judge2(mcalc.v71 ) }}{{ Math.abs(mcalc.v72).toFixed(2)}}%，，主要原因是:</p>
                    <!-- <p v-else class="indent">国有资本经营预算未安排。</p> -->
                    <p v-show="mthisyear.gov_capital != 0.00" class="olddata">
                      <Input disabled v-model="mlastyear.gov_capital">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p v-show="mthisyear.gov_capital != 0.00" class="indent textarea">
                      <Input v-model="report.reason31" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 财政专户 -->
                    <p v-if="mthisyear.special_financial_account != 0.00" class="indent">财政专户收入{{ +mthisyear.special_financial_account.toFixed(2) }}万元，占{{ Math.abs(mcalc.v84).toFixed(2)}}%，比上年预算{{ judge(mcalc.v85) }}{{ Math.abs(mcalc.v85).toFixed(2) }}万元，{{ judge2(mcalc.v85 ) }}{{ Math.abs(mcalc.v86).toFixed(2) }}%，主要原因是:</p>
                    <p v-show="mthisyear.special_financial_account != 0.00" class="olddata">
                      <Input disabled v-model="mlastyear.special_financial_account">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p v-show="mthisyear.special_financial_account != 0.00" class="indent textarea">
                      <Input v-model="report.reason23" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 事业 -->
                    <p v-if="mthisyear.utility_income != 0.00" class="indent">事业收入{{ +mthisyear.utility_income.toFixed(2) }}万元，占{{ Math.abs(mcalc.v83).toFixed(2)}}%，比上年预算{{ judge(mcalc.v81) }}{{ Math.abs(mcalc.v81).toFixed(2) }}万元，{{ judge2(mcalc.v81 ) }}{{ Math.abs(mcalc.v82).toFixed(2) }}%，主要原因是:</p>
                    <!-- <p v-else class="indent">事业收入未安排。</p> -->
                    <p v-show="mthisyear.utility_income != 0.00" class="olddata">
                      <Input disabled v-model="mlastyear.utility_income">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p v-show="mthisyear.utility_income != 0.00" class="indent textarea">
                      <Input v-model="report.reason13" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 事业单位经营 -->
                    <p v-if="mthisyear.institution_management_income != 0.00" class="indent">事业单位经营收入{{ +mthisyear.institution_management_income.toFixed(2) }}万元，占{{ Math.abs(mcalc.v87).toFixed(2)}}%，比上年预算{{ judge(mcalc.v88) }}{{ Math.abs(mcalc.v88).toFixed(2) }}万元，{{ judge2(mcalc.v88 ) }}{{ Math.abs(mcalc.v89).toFixed(2) }}%，主要原因是:</p>
                    <p v-show="mthisyear.institution_management_income != 0.00" class="olddata">
                      <Input disabled v-model="mlastyear.institution_management_income">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p v-show="mthisyear.institution_management_income != 0.00" class="indent textarea">
                      <Input v-model="report.reason28" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 其他 -->
                    <p v-if="mthisyear.institution_other_income != 0.00" class="indent">单位其他资金收入{{ +mthisyear.institution_other_income.toFixed(2) }}万元，占{{ Math.abs(mcalc.v7).toFixed(2)}}%，比上年预算{{ judge(mcalc.v8) }}{{ Math.abs(mcalc.v8).toFixed(2) }}万元，{{ judge2(mcalc.v8 ) }}{{ Math.abs(mcalc.v9).toFixed(2) }}%，主要原因是:</p>
                    <!-- <p v-else class="indent">单位其他资金收入未安排。</p> -->
                    <p v-show="mthisyear.institution_other_income != 0.00" class="olddata">
                      <Input disabled v-model="mlastyear.institution_other_income">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p v-show="mthisyear.institution_other_income != 0.00" class="indent textarea">
                      <Input v-model="report.reason3" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 333333333333333333333333 -->
                    <p class="sub_title">三、关于{{report.institutions_name}}单位{{ myear }}年支出预算情况说明</p>
                    <p class="indent">{{report.institutions_name}}单位{{ myear }}年支出预算{{mthisyear.total.toFixed(2)}}万元，其中：</p>
                    <!-- <p class="indent">基本支出1815.95万元，占5.61%，比上年预算{{ judge(mcalc.v5) }}96.54万元，增长5.61%，主要原因是{{report.institutions_name}}{{ myear }}年度在编在职人员79人，基本工资及绩效工资调资增幅，预算收入相应{{ judge(mcalc.v5) }}。</p> -->
                    <p class="indent">基本支出{{ mthisyear.jbzc.toFixed(2) }}万元，占{{ Math.abs(mcalc.v10).toFixed(2) }}%，比上年预算{{ judge(mcalc.v11) }}{{ Math.abs(mcalc.v11).toFixed(2)}}万元，{{ judge2(mcalc.v11 ) }}{{ Math.abs(mcalc.v12).toFixed(2)}}%，主要原因是:</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.jbzc">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason4" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- <p class="indent">项目支出30564.85万元，占94.39%，比上年预算{{ judge(mcalc.v5) }}23675.94万元，增长343.68%，主要原因是{{report.institutions_name}}{{ myear }}年度新增土地增减挂项目，同时减少退耕还林补助资金项目，预算数相应{{ judge(mcalc.v5) }}。</p> -->
                    <p class="indent">项目支出{{mthisyear.xmzc.toFixed(2)}}万元，占{{ Math.abs(mcalc.v13).toFixed(2) }}%，比上年预算{{ judge(mcalc.v14) }}{{ Math.abs(mcalc.v14).toFixed(2) }}万元，{{ judge2(mcalc.v14 ) }}{{ Math.abs(mcalc.v15).toFixed(2)}}%，主要原因是:</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.xmzc">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason5" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 44444444444444444444444 -->
                    <p class="sub_title">四、关于{{report.institutions_name}}单位{{ myear }}年财政拨款收支预算情况的总体说明</p>
                    <p class="indent">{{ myear }}年财政拨款收支总预算{{mthisyear.fiscal_appropriation.toFixed(2)}}万元。</p>
                    <!-- <p class="indent">
                      <span>收入预算包括：一般公共预算拨款{{mthisyear.general_public_budget.toFixed(2)}}万元</span>
                      <span v-if="mthisyear.government_budgets != 0.00">，政府性基金预算拨款{{mthisyear.government_budgets.toFixed(2)}}万元</span>
                      <span v-else>, 无政府性基金预算拨款</span>
                      <span v-if="mthisyear.gov_capital != 0.00">，国有资本预算拨款{{mthisyear.gov_capital.toFixed(2)}}万元</span>
                      <span v-else>, 无国有资本预算拨款</span>
                      。
                    </p> -->
                    <!-- 无政府性基金 -->
                    <p v-if="(mthisyear.gov_capital==0.00) && (mthisyear.government_budgets==0.00)" class="indent">
                      <span>收入全部为一般公共预算拨款，无政府性基金预算拨款和国有资本经营预算。</span>
                    </p>
                    <p class="indent">
                      <span>收入预算包括：{{mthisyear.include4}}</span>
                      <!-- <span v-if="mthisyear.general_public_budget !=0.00">一般公共预算拨款{{mthisyear.general_public_budget.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.government_budgets !=0.00">政府性基金预算拨款{{mthisyear.government_budgets.toFixed(2)}}万元。</span>
                      <span v-if="mthisyear.gov_capital !=0.00">国有资本经营预算{{mthisyear.gov_capital.toFixed(2)}}万元。</span> -->
                    </p>
                    <!-- <p v-if="mthisyear.gov_capital==0.00" class="indent">
                      <span>收入预算包括：一般公共预算拨款{{mthisyear.general_public_budget.toFixed(2)}}万元。</span>
                    </p>
                    有政府性基金
                    <p v-if="mthisyear.gov_capital!=0.00" class="indent">
                      <span>收入预算包括：一般公共预算拨款{{mthisyear.general_public_budget.toFixed(2)}}万元，政府性基金预算拨款{{ mthisyear.gov_capital.toFixed(2) }}万元。</span>
                    </p> -->
                    <p class="indent">
                      <span>一般公共预算支出包括：</span>
                      <!-- <span v-for="(item,idx) in zcbudgetlists" :key="idx">{{ item.title }}{{ Math.abs(item.total) }}万元，主要用于{{ item.use1 }}。</span> -->
                    </p>
                    <div class="indent" v-for="(item,idx) in zcbudgetlists" :key="idx">
                      <p class="indent">{{ item.title }}{{ item.total }}万元，主要用于：</p>
                      <p class="indent textarea">
                        <Input v-model="reasonSet[item.vmodel]" type="textarea" :cols="20" :rows="2" placeholder="请进行说明..." />
                      </p>
                    </div>
                    <!-- 政府性基金 -->
                    <p v-if="mthisyear.government_budgets != 0.00" class="indent">政府性基金预算拨款{{ mthisyear.government_budgets.toFixed(2) }}万元，主要用于：</p>
                    <!-- <p v-else class="indent">政府性基金预算拨款未安排。</p> -->
                    <p v-if="mthisyear.government_budgets != 0.00" class="indent textarea">
                      <Input v-model="report.reason6" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 国有资本 -->
                    <p v-if="mthisyear.gov_capital != 0.00" class="indent">国有资本经营预算{{ mthisyear.gov_capital.toFixed(2) }}万元，主要用于：</p>
                    <!-- <p v-else class="indent">政府性基金预算拨款未安排。</p> -->
                    <p v-if="mthisyear.gov_capital != 0.00" class="indent textarea">
                      <Input v-model="reasonSet.govreason" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 555555555555555555555555 -->
                    <p class="sub_title">五、关于{{report.institutions_name}}单位{{ myear }}年一般公共预算当年拨款情况说明</p>
                    <p class="sub_title">（一）一般公用预算当年拨款规模变化情况</p>
                    <p class="indent">{{report.institutions_name}}{{ myear }}年一般公共预算拨款合计{{ mthisyear.general_public_budget.toFixed(2) }}万元，其中：</p>
                    <!-- <p class="indent">基本支出1471.79万元，比上年预算数减少149.94万元，下降9.25%。主要原因是：{{report.institutions_name}}{{ myear }}年预算将不动产临聘人员43人工资福利支出调整至其他收入，预算数相应减少。</p> -->
                    <p class="indent">基本支出{{ mthisyear.jbzc1.toFixed(2) }}万元，比上年预算数{{ judge(mcalc.c11) }}{{ Math.abs(mcalc.c11).toFixed(2) }}万元，{{judge2(mcalc.c11)}}{{ Math.abs(mcalc.c12).toFixed(2) }}%。主要原因是：</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.jbzc1">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason7" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- <p class="indent">项目支出1986.30万元，比上年预算数减少3851.98万元，下降65.98%。主要原因是：{{report.institutions_name}}{{ myear }}年预算减少退耕还林生产补贴项目，预算数相应减少。</p> -->
                    <p class="indent">项目支出{{ mthisyear.xmzc1.toFixed(2) }}万元，比上年预算数{{ judge(mcalc.c14) }}{{ Math.abs(mcalc.c14).toFixed(2) }}万元，{{judge2(mcalc.c14)}}{{ Math.abs(mcalc.c15).toFixed(2) }}%。主要原因是：</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.xmzc1">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason8" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <p class="sub_title">（二）一般公共预算当年拨款结构情况</p>
                    <p class="indent" v-for="(item,idx, index) in zcbudgetlists" :key="idx">{{index+1}}、{{ item.title }}{{ item.total }}万元，占{{ item.rate }}%。</p>
                    <!-- <p v-for="(item, idx) in others" :key="idx" class="indent">
                      <span v-if="item === 'shbzjyzc'">{{ idx+1 }}、社会保障和就业支出{{mthisyear.shbzjyzc.toFixed(2)}}万元，占{{ mcalc.v19.toFixed(2)}}%。</span>
                      <span v-if="item === 'wsjkzc'">{{ idx+1 }}、卫生健康支出{{mthisyear.wsjkzc.toFixed(2)}}万元，占{{mcalc.v20.toFixed(2)}}%。</span>
                      <span v-if="item === 'jnhbzc'">{{ idx+1 }}、节能环保支出{{mthisyear.jnhbzc.toFixed(2)}}万元，占{{mcalc.v21.toFixed(2)}}%。</span>
                      <span v-if="item === 'nlszc'">{{ idx+1 }}、农林水支出{{mthisyear.nlszc.toFixed(2)}}万元，占{{mcalc.v22.toFixed(2)}}%。</span>
                      <span v-if="item === 'zrzyhyqxzc'">{{ idx+1 }}、自然资源海洋气象等支出{{mthisyear.zrzyhyqxzc.toFixed(2)}}万元，占{{mcalc.v23.toFixed(2)}}%。</span>
                      <span v-if="item === 'zfbzzc'">{{ idx+1 }}、住房保障支出{{mthisyear.zfbzzc.toFixed(2)}}万元，占{{mcalc.v24.toFixed(2)}}%。</span>
                      <span v-if="item === 'zhfzzc'">{{ idx+1 }}、灾害防治及应急管理支出{{mthisyear.zhfzzc.toFixed(2)}}万元，占{{mcalc.v25.toFixed(2)}}%。</span>
                      <span v-if="item === 'ybggfwzc'">{{ idx+1 }}、一般公共服务支出{{mthisyear.ybggfwzc.toFixed(2)}}万元，占{{mcalc.f4.toFixed(2)}}%。</span>
                    </p> -->
                    <!-- <p class="indent">1、社会保障和就业支出{{mthisyear.shbzjyzc.toFixed(2)}}万元，占{{ mcalc.v19.toFixed(2)}}%。</p>
                    <p class="indent">2、卫生健康支出{{mthisyear.wsjkzc.toFixed(2)}}万元，占{{mcalc.v20.toFixed(2)}}%。</p>
                    <p class="indent">3、节能环保支出{{mthisyear.jnhbzc.toFixed(2)}}万元，占{{mcalc.v21.toFixed(2)}}%。</p>
                    <p class="indent">4、农林水支出{{mthisyear.nlszc.toFixed(2)}}万元，占{{mcalc.v22.toFixed(2)}}%。</p>
                    <p class="indent">5、自然资源海洋气象等支出{{mthisyear.zrzyhyqxzc.toFixed(2)}}万元，占{{mcalc.v23.toFixed(2)}}%。</p>
                    <p class="indent">6、住房保障支出{{mthisyear.zfbzzc.toFixed(2)}}万元，占{{mcalc.v24.toFixed(2)}}%。</p>
                    <p class="indent">7、灾害防治及应急管理支出{{mthisyear.zhfzzc.toFixed(2)}}万元，占{{mcalc.v25.toFixed(2)}}%。</p> -->
                    <p class="sub_title">（三）一般公共预算当年拨款具体使用情况</p>
                    <div v-for="(item,idx,index) in publists" :key="index">
                      <p class="indent">{{ index+1 }}、{{ item.title }}：{{ myear }}年预算数为{{ item.total }}万元，比上年预算数{{ item.c3 }}{{ item.c1 }}万元，{{ item.c4 }}{{ item.c5 }}%。主要原因是：</p>
                      <p class="olddata">
                      <Input disabled v-model="item.ltotal">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                      <p class="indent textarea">
                        <Input v-model="reasonSet[item.vmodel]" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..."></Input>
                      </p>
                    </div>
                    <!-- 66666666666666666666666666666666 -->
                    <p class="sub_title">六、关于{{report.institutions_name}}单位{{ myear }}年一般公共预算基本支出情况说明</p>
                    <p class="indent">{{report.institutions_name}}单位{{ myear }}年一般公共预算基本支出{{ mthisyear.jbzc1.toFixed(2) }}万元， 其中：</p>
                    <!-- <p class="indent textarea">
                      <Input v-model="report.reason23" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p> -->
                    <p class="indent">1、人员经费{{ zdata.ryzc.toFixed(2) }}万元，主要包括：{{ zdata.ryarr }}。</p>
                    <p class="indent">2、公用经费{{ zdata.gyzc.toFixed(2) }}万元，主要包括：{{ zdata.gyarr }}。</p>
                    <!-- 777777777777777777777777777 -->
                    <p class="sub_title">七、关于{{report.institutions_name}}单位{{ myear }}年一般公共预算项目支出情况说明</p>
                     <!-- <p class="indent" v-show="mthisyear.jbzc1==0.00">
                       {{report.institutions_name}}单位{{ myear }}年没有安排项目支出，项目支出情况表为空表。
                     </p> -->
                     <div v-if="zdata.projectcount != 0">
                      <div v-show="item.budget!='0.00万元'" class="project" v-for="item in projectlists" :key="item.project_code">
                        <Card :shadow="false" class="margin-bottom-10">
                          <p>项目、项目情况说明</p>
                          <p class="projectp">
                            <Input v-model="item.project_name" placeholder="请填写">
                              <span class="input-prepend" slot="prepend">项目名称</span>
                            </Input>
                          </p>
                          <p class="projectp">
                            <RadioGroup @on-change="ttt(projectSet, item.vmodel1, projectSet[item.vmodel1])" v-model="projectSetCopy[item.vmodel1]">
                              <Radio :label="1">常规项目</Radio>
                              <Radio :label="2">个人补贴项目</Radio>
                            </RadioGroup>
                          </p>
                          <p class="projectp">
                            <Input v-model="projectSet[item.vmodel2]" placeholder="请填写">
                              <span class="input-prepend" slot="prepend">设立政策依据</span>
                            </Input>
                          </p>
                          <p class="projectp">
                            <Input v-model="item.budget" placeholder="请填写">
                              <span class="input-prepend" slot="prepend">预算安排规模</span>
                            </Input>
                          </p>
                          <p class="projectp">
                            <Input v-model="projectSet[item.vmodel4]" placeholder="请填写">
                              <span class="input-prepend" slot="prepend">项目承担单位</span>
                            </Input>
                          </p>
                          <p class="projectp">
                            <Input v-model="projectSet[item.vmodel5]" placeholder="请填写">
                              <span class="input-prepend" slot="prepend">资金分配情况</span>
                            </Input>
                          </p>
                          <p class="projectp">
                            <Input v-model="projectSet[item.vmodel6]" placeholder="请填写">
                              <span class="input-prepend" slot="prepend">资金执行时间</span>
                            </Input>
                          </p>
                          <div v-show="projectSet[item.vmodel1] == 2">
                            <p class="projectp">
                              <Input v-model="projectSet[item.vmodel7]" placeholder="请填写">
                                <span class="input-prepend" slot="prepend">资金来源</span>
                              </Input>
                            </p>
                            <p class="projectp">
                              <Input v-model="projectSet[item.vmodel8]" placeholder="请填写">
                                <span class="input-prepend" slot="prepend">补贴人数</span>
                              </Input>
                            </p>
                            <p class="projectp">
                              <Input v-model="projectSet[item.vmodel9]" placeholder="请填写">
                                <span class="input-prepend" slot="prepend">补贴标准</span>
                              </Input>
                            </p>
                            <p class="projectp">
                              <Input v-model="projectSet[item.vmodel10]" placeholder="请填写">
                                <span class="input-prepend" slot="prepend">补贴范围</span>
                              </Input>
                            </p>
                            <p class="projectp">
                              <Input v-model="projectSet[item.vmodel11]" placeholder="请填写">
                                <span class="input-prepend" slot="prepend">补贴方式</span>
                              </Input>
                            </p>
                            <p class="projectp">
                              <Input v-model="projectSet[item.vmodel12]" placeholder="请填写">
                                <span class="input-prepend" slot="prepend">发放程序</span>
                              </Input>
                            </p>
                            <p class="projectp">
                              <Input v-model="projectSet[item.vmodel13]" placeholder="请填写">
                                <span class="input-prepend" slot="prepend">受益人群效益</span>
                              </Input>
                            </p>
                          </div>
                        </Card>
                      </div>
                    </div>
                    <div v-else>
                      <p class="indent">
                        {{report.institutions_name}}{{ myear }}年没有安排项目支出，项目支出情况表为空表。
                      </p>
                    </div>
                    <!-- 88888888888888888888888888 -->
                    <p class="sub_title">八、关于{{report.institutions_name}}单位{{ myear }}年一般公共预算“三公”经费预算情况说明</p>
                    <p class="indent">{{report.institutions_name}}单位{{ myear }}年一般公共预算“三公”经费数为{{ mthisyear.sgtotal.toFixed(2) }}万元，其中：</p>
                    <!-- <p v-else class="indent">{{report.institutions_name}}单位{{ myear }}年一般公共预算“三公”经费未安排。</p> -->
                    <p class="indent">
                      <!-- <span v-if="mthisyear.ygcg!=0.00">因公出国（境）费{{ mthisyear.ygcg.toFixed(2) }}万元。</span>
                      <span v-if="mthisyear.gwycgz!=0.00">公务用车购置{{ mthisyear.gwycgz.toFixed(2) }}万元。</span>
                      <span v-if="mthisyear.gwycwh!=0.00">公务用车运行费{{ mthisyear.gwycwh.toFixed(2) }}万元。</span>
                      <span v-if="mthisyear.gwjdf!=0.00">公务接待费{{ mthisyear.gwjdf.toFixed(2) }}万元。</span> -->
                      <span>因公出国（境）费{{ mthisyear.ygcg.toFixed(2) }}万元，</span>
                      <span>公务用车购置{{ mthisyear.gwycgz.toFixed(2) }}万元，</span>
                      <span>公务用车运行费{{ mthisyear.gwycwh.toFixed(2) }}万元，</span>
                      <span>公务接待费{{ mthisyear.gwjdf.toFixed(2) }}万元。</span>
                   </p>
                    <!-- <p class="indent">{{ myear }}年一般公共预算“三公”经费比上年减少1.36万元，下降5.02%，其中：因公出国（境）费{{ judge(mcalc.v5) }}0.00万元，增长0.00%，主要原因是：{{report.institutions_name}}单位{{ myear }}年度未安排因公出国（境）费；公务用车购置费{{ judge(mcalc.v5) }}0.00万元，增长0.00%，主要原因是：{{report.institutions_name}}单位{{ myear }}年度未安排公务用车购置费；公务用车运行费减少1.36万元，下降5.02%，主要原因是：{{report.institutions_name}}单位{{ myear }}年度厉行节约，压减公务用车运行费；公务接待费{{ judge(mcalc.v5) }}0.00万元，增长0.00%，主要原因是：{{report.institutions_name}}单位{{ myear }}年度未安排公务接待费。</p> -->
                    <p class="indent">{{ myear }}年一般公共预算“三公”经费比上年{{ judge(mcalc.v54) }}{{ Math.abs(mcalc.v54).toFixed(2) }}万元，{{judge2(mcalc.v54)}}{{ Math.abs(mcalc.c55).toFixed(2) }}%，其中：</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.sgtotal">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p v-if="mcalc.v56 != 0.00" class="indent">因公出国（境）费{{ judge(mcalc.v56) }}{{ Math.abs(mcalc.v56).toFixed(2) }}万元，{{ judge2(mcalc.v56 ) }}{{ Math.abs(mcalc.v57).toFixed(2) }}%，主要原因是：</p>
                    <p v-else class="indent">因公出国（境）费{{ judge(mcalc.v56) }}{{ Math.abs(mcalc.v56).toFixed(2) }}万元，{{ judge2(mcalc.v56) }}{{ mcalc.c57.toFixed(2) }}%，主要原因是：</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.ygcg">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason23" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <p v-if="mcalc.f1 != 0.00" class="indent">公务用车购置费{{ judge(mcalc.f1) }}{{ mcalc.f101 }}万元，{{ judge2(mcalc.f1 ) }}{{ Math.abs(mcalc.v62).toFixed(2) }}%，主要原因是：</p>
                    <p v-else class="indent">公务用车购置费{{ judge(mcalc.f1) }}{{ mcalc.f101 }}万元，{{ judge2(mcalc.f1 ) }}{{mcalc.cf1.toFixed(2)}}%，主要原因是：</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.gwycgz">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason24" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <p v-if="mcalc.f2 != 0.00" class="indent">公务用车运行费{{ judge(mcalc.f2) }}{{ mcalc.f201 }}万元，{{judge2(mcalc.f2)}}{{ Math.abs(mcalc.v64).toFixed(2) }}%，主要原因是：</p>
                    <p v-else class="indent">公务用车运行费{{ judge(mcalc.f2) }}{{ mcalc.f201 }}万元，{{judge2(mcalc.f2)}}{{mcalc.cf2.toFixed(2)}}%，主要原因是：</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.gwycwh">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason25" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <p v-if="mcalc.f3 != 0.00" class="indent">公务接待费{{ judge(mcalc.f3) }}{{ mcalc.f301 }}万元，{{ judge2(mcalc.f3 ) }}{{ Math.abs(mcalc.v63).toFixed(2) }}%，主要原因是：</p>
                    <p v-else class="indent">公务接待费{{ judge(mcalc.f3) }}{{ mcalc.f301 }}万元，{{ judge2(mcalc.f3) }}{{mcalc.cf3.toFixed(2)}}%，主要原因是：</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.gwjdf">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason26" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <!-- 9999999999999999999999999999 -->
                    <p class="sub_title">九、关于{{report.institutions_name}}单位{{ myear }}年政府性基金预算拨款情况说明</p>
                    <!-- <p class="indent">{{report.institutions_name}}{{ myear }}政府性基金支出预算支出27583.60万元。与上年相比{{ judge(mcalc.v5) }}27583.60万元，增长100%。主要原因是{{report.institutions_name}}{{ myear }}年度新增土地增减挂项目共66个，其中：产业发展类23个；公共服务及配套设施提升29个；人居环境整治10个；增减挂绩效评价服务3个，预算数相应{{ judge(mcalc.v5) }}。其中：</p> -->
                    <p v-if="mthisyear.government_budgets != 0.00" class="indent">{{report.institutions_name}}{{ myear }}政府性基金支出预算支出{{ mthisyear.government_budgets.toFixed(2) }}万元。与上年相比{{ judge(mcalc.v5) }}{{ Math.abs(mcalc.v5).toFixed(2) }}万元，{{ judge2(mcalc.v5 ) }}{{ Math.abs(mcalc.v6).toFixed(2) }}%。主要原因:</p>
                    <p v-else class="indent">{{report.institutions_name}}{{myear}}年没有使用政府性基金支出预算拨款安排的支出，政府性基金预算支出情况表为空表。</p>
                    <p v-if="mthisyear.government_budgets != 0.00" class="indent textarea">
                      <Input v-model="report.reason27" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <div v-for="(item, index, idx) in govlists" :key="index">
                      <p class="indent">{{ idx + 1}}、{{ item.title }}：{{ myear }}年预算数为{{ Math.abs(item.total) }}万元，比上年预算数{{ item.c3 }}{{ Math.abs(item.c1) }}万元，{{ item.c4 }}{{ Math.abs(item.c5) }}%。主要原因是：</p>
                      <p class="indent textarea">
                        <Input v-model="reasonSet[item.vmodel]" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..."></Input>
                      </p>
                    </div>
                    <!-- <p class="indent">1．城乡社区支出（类）国有土地使用权出让收入安排的支出（款）农业农村生态环境支出（项）支出{{ mthisyear.a17.toFixed(2) }}万元，与上年相比{{ judge(mcalc.v5) }}{{ mcalc.v58.toFixed(2) }}万元，{{ judge2(mcalc.v6 ) }}{{ mcalc.v59.toFixed(2) }}%，主要是用于{{report.institutions_name}}{{ myear }}年度新增土地增减挂项目共66个，其中：产业发展类23个；公共服务及配套设施提升29个；人居环境整治10个；增减挂绩效评价服务3个，预算数相应{{ judge(mcalc.v5) }}。</p> -->
                    <!-- <p v-if="mthisyear.government_budgets != 0.00" class="indent">1．城乡社区支出（类）国有土地使用权出让收入安排的支出（款）农业农村生态环境支出（项）支出{{ mthisyear.a17.toFixed(2) }}万元，与上年相比{{ judge(mcalc.v58) }}{{ Math.abs(mcalc.v58).toFixed(2) }}万元，{{ judge2(mcalc.v58 ) }}{{ Math.abs(mcalc.v59).toFixed(2) }}%，主要是:</p>
                    <p v-if="mthisyear.government_budgets != 0.00" class="indent textarea">
                      <Input v-model="report.reason28" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p> -->
                    <!-- 000000000000000000000000000000000000 -->
                    <p class="sub_title">十、其他重要事项的情况说明</p>
                    <p class="sub_title">（一）机关运行经费情况</p>
                    <!-- <p class="indent">{{ myear }}年，{{report.institutions_name}}本级及下属0家行政单位和家事业单位的机关运行经费财政拨款预算54.08万元，比上年预算减少231.10万元，下降81.04%。主要原因是{{report.institutions_name}}临聘人员43人工资福利支出调整至其他收入。</p> -->
                    <p class="indent">{{ myear }}年，{{report.institutions_name}}本级及下属<Input class="num_input" v-model="report.ra24" />家行政单位和<Input class="num_input" v-model="report.ra25" />家事业单位的机关运行经费财政拨款预算{{ mthisyear.jgyxjf.toFixed(2) }}万元，比上年预算{{ judge(mcalc.v60) }}{{ Math.abs(mcalc.v60).toFixed(2) }}万元，{{judge2(mcalc.v60)}}{{ Math.abs(mcalc.v61).toFixed(2) }}%。主要原因是：</p>
                    <p class="olddata">
                      <Input disabled v-model="mlastyear.jgyxjf">
                        <span slot="prepend">上年数据</span>
                      </Input>
                    </p>
                    <p class="indent textarea">
                      <Input v-model="report.reason29" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                    <p class="sub_title">（二）政府采购情况</p>
                    <p class="indent">{{ myear }}年，{{report.institutions_name}}单位政府采购预算<Input class="num_input" v-model="report.ra1" />万元，其中：政府采购货物预算<Input class="num_input" v-model="report.ra2" />万元，政府采购工程预算<Input class="num_input" v-model="report.ra3" />万元，政府采购服务预算<Input class="num_input" v-model="report.ra4" />万元。</p>
                    <p class="indent">{{ myear }}年度本单位面向中小企业预留政府采购项目预算金额<Input class="num_input" v-model="report.ra5" />万元，其中：面向小微企业预留政府采购项目预算金额<Input class="num_input" v-model="report.ra6" />万元。</p>
                    <p class="sub_title">（三）国有资产占用使用情况</p>
                    <p class="indent">截至{{ myear }}年底，{{report.institutions_name}}部门及下属各预算单位占用使用国有资产总体情况为</p>
                    <p class="indent">1.房屋<Input class="num_input" v-model="report.ra7" />平方米，价值<Input class="num_input" v-model="report.ra8" />万元。</p>
                    <p class="indent">2.车辆<Input class="num_input" v-model="report.ra9" />辆，价值<Input class="num_input" v-model="report.ra10" />万元；其中：一般公务用车<Input class="num_input" v-model="report.ra11" />辆，价值<Input class="num_input" v-model="report.ra12" />万元；执法执勤用车<Input class="num_input" v-model="report.ra13" />辆，价值<Input class="num_input" v-model="report.ra14" />万元；其他车辆<Input class="num_input" v-model="report.ra15" />辆，价值<Input class="num_input" v-model="report.ra16" />万元。</p>
                    <p class="indent">3.办公家具价值<Input class="num_input" v-model="report.ra17" />万元。</p>
                    <p class="indent">4.其他资产价值<Input class="num_input" v-model="report.ra18" />万元。</p>
                    <p class="indent">单位价值50万元以上大型设备<Input class="num_input" v-model="report.ra19" />台（套），单位价值100万元以上大型设备<Input class="num_input" v-model="report.ra20" />台（套）。</p>
                    <p class="indent">{{ myear }}年单位预算未安排购置车辆经费（或安排购置车辆经费<Input class="num_input" v-model="report.ra26" />万元），安排购置50万元以上大型设备<Input class="num_input" v-model="report.ra21" />台（套），单位价值100万元以上大型设备<Input class="num_input" v-model="report.ra22" />台（套）。</p>
                    <p class="sub_title">（四）预算绩效情况</p>
                    <p v-if="mthisyear.project_count !=0" class="indent">{{ myear }}年，本年度预算绩效管理的财政拨款项目{{ mthisyear.project_count }}个，涉及预算金额{{ mthisyear.project_payment.toFixed(2) }}万元。具体情况见下表（按项目分别填报）：</p>
                    <p v-else class="indent">{{ myear }}年，本年度预算绩效管理的财政拨款项目0个，涉及预算金额0.00万元。具体情况见下表（按项目分别填报）：</p>
                    <div style="width:100%;margin:0 auto;">
                      <div v-for="(items, idxs) in jxset" :key="idxs">
                        <Card style="margin-bottom: 20px">
                          <p style="text-align: right"><Icon @click="deljx(idxs)" type="md-close-circle" /></p>
                          <table style="border-collapse: collapse;" border="1">
                            <tr :class="idx < 2 ? 'theader':''" v-for="(item, idx) in items" :key="idx">
                              <td :align="idx != 4 ? 'center':''" :rowspan="item2.row" :colspan="item2.col" v-for="(item2, idx2) in item" :key="idx2">{{ item2.val }}</td>
                            </tr>
                          </table>
                        </Card>
                      </div>
                      <Button @click="modal1 = true" shape="circle" size="samll" type="primary" long>创建绩效表</Button>
                      <Modal @on-ok="jxok" width="80%" v-model="modal1" title="创建绩效表">
                        <Input placeholder="在此处粘贴" :rows="10" type="textarea" v-model="jxcontent" />
                      </Modal>
                    </div>
                    <p class="sub_title"></p>
                    <!-- <div class="table_content">
                      <div class="table_title">项目支出绩效目标表</div>
                      <div class="desc"><span>{{ myear }}年</span></div>
                      <div class="table7">
                        <table>
                          <tr>
                            <th colspan="1">预算单位</th>
                            <th colspan="5">喀什市自然资源局</th>
                            <th colspan="1">项目名称</th>
                            <th colspan="3">{{ myear }}年森林林业发展项目</th>
                          </tr>
                          <tr>
                            <td colspan="1">项目资金</td>
                            <td colspan="2">年度资金总额</td>
                            <td colspan="1">100</td>
                            <td colspan="2">财政拨款</td>
                            <td colspan="1">200</td>
                            <td colspan="2">其他资金</td>
                            <td colspan="1">0</td>
                          </tr>
                          <tr>
                            <td colspan="1">项目总体目标</td>
                            <td colspan="9"></td>
                          </tr>
                          <tr>
                            <td colspan="1">一级指标</td>
                            <td colspan="2">二级指标</td>
                            <td colspan="3">三级指标</td>
                            <td colspan="4">指标值（包含数字及文字描述）</td>
                          </tr>
                          <tr>
                            <td rowspan="14" colspan="1">产品指标</td>
                            <td rowspan="5" colspan="2">数量指标</td>
                            <td colspan="3">病虫害防治面积</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">公益林管护面积</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">林果示范园面积</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">村庄绿化面积</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">保障管护人员工资人数</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td rowspan="3" colspan="2">质量指标</td>
                            <td colspan="3">项目验收合格率</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">工作任务完成率</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">资金使用合规率</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td rowspan="2" colspan="2">时效指标</td>
                            <td colspan="3">经费支付及时率</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">经费保障月份</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td rowspan="4" colspan="2">成本指标</td>
                            <td colspan="3">管护人员工资</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">林果产业发展投资</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">村庄绿化成本</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">病虫害防治成本</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td rowspan="3" colspan="1">效益指标</td>
                            <td rowspan="3" colspan="2">社会效益指标</td>
                            <td colspan="3">公共服务水平提升情况</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">业务保障能力提升情况</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">提升生态资源安全性</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td rowspan="2" colspan="1">满意度指标</td>
                            <td rowspan="2" colspan="2">满意度指标</td>
                            <td colspan="3">管护人员满意度</td>
                            <td colspan="4">1</td>
                          </tr>
                          <tr>
                            <td colspan="3">受益农户满意度</td>
                            <td colspan="4">1</td>
                          </tr>
                        </table>
                      </div>
                    </div> -->

                    <p class="sub_title">（五）其他需说明的事项</p>
                    <p class="indent textarea">
                      <Input v-model="report.reason30" type="textarea" :cols="20" :rows="4" placeholder="请进行说明..." />
                    </p>
                  </div>
              </Panel>
              <Panel name="5">
                  <span class="panel_title">第四部分 名词解释</span>
                  <div slot="content">
                    <p class="sub_title">名词解释：</p>
                    <p class="indent"><b>一、财政拨款：</b>指由一般公共预算、政府性基金预算、国有资本经营预算安排的财政拨款数。</p>
                    <p class="indent"><b>二、一般公共预算：</b>包括公共财政拨款（补助）资金、专项收入。</p>
                    <p class="indent"><b>三、财政专户管理资金：</b>包括专户管理行政事业性收费（主要是教育收费）、其他非税收入。</p>
                    <p class="indent"><b>四、其他资金：</b>包括事业收入、事业经营收入、其他收入等。</p>
                    <p class="indent"><b>五、基本支出：</b>包括人员经费、公用经费（定额）。其中，人员经费包括工资福利支出、对个人和家庭的补助。</p>
                    <p class="indent"><b>六、项目支出：</b>部门（单位）支出预算的组成部分，是自治区本级部门（单位）为完成其特定的行政任务或事业发展目标，在基本支出预算之外编制的年度项目支出计划。</p>
                    <p class="indent"><b>七、“三公”经费：</b>指市本级部门（单位）用一般公共预算财政拨款安排的因公出国（境）费、公务用车购置及运行费和公务接待费。其中，因公出国（境）费指单位公务出国（境）的住宿费、旅费、伙食补助费、杂费、培训费等支出；公务用车购置及运行费指单位公务用车购置费及租用费、燃料费、维修费、过路过桥费、保险费、安全奖励费用等支出；公务接待费指单位按规定开支的各类公务接待（含外宾接待）支出。</p>
                    <p class="indent"><b>八、机关运行经费：</b>指各部门（单位）的公用经费，包括{{officeRunFunding.join('，')}}及其他费用。</p>
                  </div>
              </Panel>
          </Collapse>
        </Card>
        </div>
      </Col>
      <Col span="2">
      <div class="btn">
      <Button :disabled="lock" type="primary" size="small" style="margin-right: 5px" @click="download()">下载文档</Button>
      <div v-if="report.status==2">
        <Button :disabled="lock4" type="primary" size="small" style="margin-right: 5px" @click="cancel()">取消上报</Button>
      </div>

      <div v-if="report.status==1">
        <Button :disabled="lock2" type="primary" size="small" style="margin-right: 5px" @click="save()">保存文档</Button>
        <Button :disabled="lock3" type="primary" size="small" style="margin-right: 5px" @click="submit()">上报文档</Button>
      </div>
      </div>
      </Col>
    </Row>
  </div>
</template>

<script>
import { getReportData, datas, saveReport, downloadReport, pubAction } from '@/api/budget'
import { sortBy, defaultTo, isArray, cloneDeep } from 'lodash'

export default {
  name: 'budget_reportDetail',
  components: {},
  data () {
    return {
      fix1: '',
      singleoffice: '',
      jxset: [],
      pastesData: [],
      jxcontent: '',
      modal1: false,
      reasonSet: {},
      projectSet: {},
      projectSetCopy: [],
      zdata: {},
      publists: [],
      govlists: [],
      zcbudgetlists: [],
      zcbudgetlists2: [],
      projectlists: [],
      mtable3: [],
      mtable5: [],
      mtable9: [],
      mtable7: [],
      mtable4: [],
      others: [],
      others2: [],
      others3: [],
      lock: false,
      lock2: false,
      lock3: false,
      lock4: false,
      part3: {
        r1: '',
        r2: '',
        r3: '',
        r4: '',
        r5: '',
        r6: '',
        r7: '',
        r8: '',
        r9: '',
        r10: '',
        r11: '',
        r12: '',
        r13: '',
        r14: '',
        r15: '',
        r16: '',
        r17: '',
        r18: '',
        r19: '',
        r20: '',
        r21: '',
        r22: '',
        r23: '',
        r24: '',
        r25: '',
        r26: '',
        r27: '',
        r28: '',
        r29: '',
        ra1: '',
        ra2: '',
        ra3: '',
        ra4: '',
        ra5: '',
        ra6: '',
        ra7: '',
        ra8: '',
        ra9: '',
        ra10: '',
        ra11: '',
        ra12: '',
        ra13: '',
        ra14: '',
        ra15: '',
        ra16: '',
        ra17: '',
        ra18: '',
        ra19: '',
        ra20: '',
        ra21: '',
        ra22: ''
      },
      curr: 1,
      keywords: '',
      listLoading: false,
      report: {
        id: 1,
        institutions_code: '',
        institutions_name: '',
        main_function: '',
        has_subordinate_unit: 1,
        subordinate_unit_num: 2,
        administrative_unit_num: 1,
        public_unit_num: 1,
        office_data: [],
        subordinate_unit_data: [],
        staffing_num: 56,
        actual_num: 45,
        staffing_data: {
          onJob: {
            count: 46,
            changeType: 1,
            changeNum: 2
          },
          retirement: {
            count: 10,
            changeType: 1,
            changeNum: 0
          },
          retire: {
            count: 0,
            changeType: 1,
            changeNum: 0
          }
        },
        status: 1,
        reason1: '',
        reason2: '',
        reason3: '',
        reason4: '',
        reason5: '',
        // ra24: 0,
        reasonset: {},
        projectset: {}
      },
      incomeCount: {},
      budgetCount: {},
      table1: [
        [
          '财政拨款（补助）',
          'fiscal_appropriation_count',
          '201 一般公共服务支出',
          '201'
        ],
        [
          '一般公共预算',
          'general_public_budget_count',
          '202 外交支出',
          '202'
        ],
        [
          '政府性基金预算',
          'government_budgets_count',
          '203 国防支出',
          '203'
        ],
        [
          '国有资本经营预算',
          'government_capital_management_budget_count',
          '204 公共安全支出',
          '204'
        ],
        [
          '财政专户（教育收费）',
          'special_financial_account_count',
          '205 教育支出',
          '205'
        ],
        [
          '事业收入',
          'utility_income_count',
          '206 科学技术支出',
          '206'
        ],
        [
          '事业单位经营收入',
          'institution_management_income_count',
          '207 文化旅游体育与传媒支出',
          '207'
        ],
        [
          '单位其他资金收入',
          'institution_other_income_count',
          '208 社会保障和就业支出',
          '208'
        ],
        [
          '',
          '',
          '209 社会保险基金支出',
          '209'
        ],
        [
          '',
          '',
          '210 卫生健康支出',
          '210'
        ],
        [
          '',
          '',
          '211 节能环保支出',
          '211'
        ],
        [
          '',
          '',
          '212 城乡社区支出',
          '212'
        ],
        [
          '',
          '',
          '213 农林水支出',
          '213'
        ],
        [
          '',
          '',
          '214 交通运输支出',
          '214'
        ],
        [
          '',
          '',
          '215 资源勘探信息等支出',
          '215'
        ],
        [
          '',
          '',
          '216 商业服务业等支出',
          '216'
        ],
        [
          '',
          '',
          '217 金融支出',
          '217'
        ],
        [
          '',
          '',
          '219 援助其他地区支出',
          '219'
        ],
        [
          '',
          '',
          '220 自然资源海洋气象等支出',
          '220'
        ],
        [
          '',
          '',
          '221 住房保障支出',
          '221'
        ],
        [
          '',
          '',
          '222 粮油物资储备支出',
          '222'
        ],
        [
          '',
          '',
          '223 国有资本经营预算支出',
          '223'
        ],
        [
          '',
          '',
          '224 灾害防治及应急管理支出',
          '224'
        ],
        [
          '',
          '',
          '227 预备费',
          '227'
        ],
        [
          '',
          '',
          '229 其他支出',
          '229'
        ],
        [
          '',
          '',
          '230 转移性支出',
          '230'
        ],
        [
          '',
          '',
          '231 债务还本支出',
          '231'
        ],
        [
          '',
          '',
          '232 债务付息支出',
          '232'
        ],
        [
          '',
          '',
          '233 债务发行费用支出',
          '233'
        ],
        [
          '',
          '',
          '234 抗疫特别国债还本支出',
          '234'
        ]
      ],
      countDetailData: {
        general_public_budget_count_total: 0,
        government_budgets_count_total: 0,
        institution_other_income_count_total: 0
      },
      economicsDetailData: {},
      countProjectData: {},
      threePublic: {},
      countGovernmentData: {},
      officeRunFunding: [],
      mthisyear: {},
      mlastyear: {},
      mcalc: {},
      myear: '',
      table3Data: {},
      general_public_budget_data: {},
      budgetCountData: {}
    }
  },
  created () {
    // console.log(this.$route.query)
    this.query(this.$route.query.code)
    this.initdataarr(this.$route.query.code)
    this.initpubarr(this.$route.query.code)
  },
  // watch: {
  //   projectSet (val, old) {
  //     console.log(val, old)
  //   }
  // },
  methods: {
    ttt (val, key, hot) {
      console.log(val)
      this.$set(this.projectSet, key, hot === 1 ? 2 : 1)
    },
    addOffice1 () {
      this.report.office_data.push(this.singleoffice)
      this.singleoffice = ''
      console.log(this.report.office_data)
    },
    deljx (id) {
      this.jxset.splice(id, 1)
    },
    buildrow (data, line) {
      let row = []
      data.map((item, idx) => {
        if (idx === 0 && item === '') {
          return []
        }
        let collast = row.length
        if (item !== '') {
          let node = { val: item, row: 1, col: 1, level: 0 }
          row.push(node)
        } else {
          if (line < 5) {
            row[collast - 1]['col'] += 1
          } else {
            if (idx > 2) {
              row[collast - 1]['col'] += 1
            } else {
              let node = { val: item, row: 1, col: 1, level: 0 }
              row.push(node)
            }
          }
        }
      })
      if (row.length > 0) this.pastesData.push(row)
    },
    buildrowspan (key) {
      let flag = 0
      let times = 0
      this.pastesData.map((item, idx) => {
        if (item[0].val === key) {
          times += 1
        }
        if (item[0].val === key && flag === 0) {
          flag = idx
        }
      })
      this.pastesData.map((item, idx) => {
        if (idx === flag) {
          item[0].row = times
        }
        if (idx !== flag && item[0].val === key) {
          item.shift()
        }
      })
    },
    buildrowspan2 (key) {
      let flag = 0
      let times = 0
      this.pastesData.map((item, idx) => {
        if (idx > 5) {
          if (item[1].val === key) {
            times += 1
          }
          if (item[1].val === key && flag === 0) {
            flag = idx
          }
        }
      })
      this.pastesData.map((item, idx) => {
        if (idx > 5) {
          item[1].level = 1
          if (idx === flag) {
            item[1].row = times
          }
          if (idx !== flag && item[1].val === key) {
            // item.shift()
            item.splice(1, 1)
          }
        }
      })
    },
    jxok () {
      let pastes = this.jxcontent.split('\n')
      pastes.map((rows, idx) => {
        let row = rows.split('\t')
        // console.log(row)
        // this.buildColumns(row, idx)
        this.buildrow(row, idx)
      })
      this.buildrowspan2('数量指标')
      this.buildrowspan2('质量指标')
      this.buildrowspan2('时效指标')
      this.buildrowspan2('成本指标')
      this.buildrowspan2('经济效益指标')
      this.buildrowspan2('社会效益指标')
      this.buildrowspan2('生态效益指标')
      this.buildrowspan2('可持续影响指标')
      this.buildrowspan2('满意度指标')

      this.buildrowspan('产出指标')
      this.buildrowspan('效益指标')
      this.buildrowspan('满意度指标')
      console.log(this.jxset)
      this.jxset.push(this.pastesData)
      this.pastesData = []
      this.jxcontent = ''
    },
    initpubarr (codes) {
      pubAction({ code: codes }).then((res) => {
        // console.log(res)
        this.publists = res.data.data.lists
        this.govlists = res.data.data.gov
        this.zdata = res.data.data.zdata
        this.zcbudgetlists = res.data.data.zcbudget
        this.zcbudgetlists2 = res.data.data.zcbudget2
        this.mtable3 = res.data.data.table3
        this.mtable5 = res.data.data.table5
        this.mtable9 = res.data.data.table9
        // this.mtable7 = res.data.data.table7
        this.mtable7 = sortBy(res.data.data.table7, ['class', 'fund', 'item'])
        this.mtable4 = res.data.data.table4
        this.projectlists = res.data.data.projectlists
        if (res.data.data.projectSet == null || res.data.data.projectSet.length === 0) {
          for (let key in res.data.data.projectlists) {
            this.$set(this.projectSet, res.data.data.projectlists[key]['vmodel1'], 1)
          }
        } else {
          this.projectSet = JSON.parse(res.data.data.projectSet)
        }
        // 默认值 1
        // for (let key in res.data.data.projectlists) {
        //   this.projectSet[res.data.data.projectlists[key].vmodel1] = this.projectSet[res.data.data.projectlists[key].vmodel1] ? this.projectSet[res.data.data.projectlists[key].vmodel1] : 1
        // }
        console.log(this.projectSet)
        this.projectSetCopy = cloneDeep(this.projectSet)
        console.log(this.projectSetCopy)
      })
    },
    judge (a) {
      return a >= 0 ? '增加' : '减少'
    },
    judge2 (a) {
      return a >= 0 ? '增长' : '下降'
    },
    // 计算第三部分
    initp3 () {
      // 今年数据
      let total = 0
      let general_public_budget = 0
      this.mthisyear.map(item => {
        total += +item.total
        general_public_budget += +item.general_public_budget
      })
      this.p3.total = total.toFixed(2)
      this.p3.general_public_budget = general_public_budget.toFixed(2)
      this.p3.p1 = ((this.p3.general_public_budget / this.p3.total) * 100).toFixed(2)

      // 去年数据
      let ltotal = 0
      this.mlastyear.map(item => {
        ltotal += +item.total
      })
      this.p3.ltotal = ltotal.toFixed(2)
    },
    initdataarr (codes) {
      datas({ code: codes }).then((res) => {
        let data = res.data.data
        this.mthisyear = data.thisyear
        this.mlastyear = data.lastyear
        this.mcalc = data.calc
        this.myear = data.year
        this.others = data.others
        this.others2 = data.others2
        this.others3 = data.others3
        // this.initp3()
        // console.log(this.mthisyear)
        // console.log(this.mthisyear)
      })
    },
    query (code) {
      getReportData({ code }).then(response => {
        this.report = response.data.data.obj
        if (this.report.has_subordinate_unit == null) {
          this.report.has_subordinate_unit = 0
        }
        console.log(this.report.has_subordinate_unit)
        this.reasonSet = JSON.parse(response.data.data.obj.reasonset) || {}
        let pjxset = defaultTo(response.data.data.obj.jxset, JSON.stringify([]))
        this.jxset = JSON.parse(pjxset)
        if (!isArray(this.jxset)) this.jxset = []
        // this.projectSet = JSON.parse(response.data.data.obj.projectset) || {}
        let s = response.data.data.obj.office_data
        console.log(s)
        s = defaultTo(response.data.data.obj.office_data, [''])
        console.log(s)
        if (isArray(s)) {
          this.report.office_data = s
        } else {
          this.report.office_data = JSON.parse(s)
        }
        if (response.data.data.obj.subordinate_unit_data == null || response.data.data.obj.subordinate_unit_data.length === 0) {
          this.report.subordinate_unit_data = ['']
        } else {
          this.report.subordinate_unit_data = JSON.parse(response.data.data.obj.subordinate_unit_data)
        }
        this.report.staffing_data = JSON.parse(response.data.data.obj.staffing_data)
        this.incomeCount = response.data.data.incomeCount
        this.budgetCount = response.data.data.budgetCount
        this.countDetailData = response.data.data.countDetailData
        this.countClassData = response.data.data.countClassData
        this.economicsDetailData = response.data.data.economicsDetailData
        this.countProjectData = response.data.data.countProjectData
        this.threePublic = response.data.data.threePublic
        this.countGovernmentData = response.data.data.countGovernmentData
        this.officeRunFunding = response.data.data.officeRunFunding
        this.projectList = response.data.data.projectList
        this.general_public_budget_data = response.data.data.general_public_budget_data
        this.table3Data = response.data.data.table3Data
        this.budgetCountData = response.data.data.budgetCountData

        for (var i = 1; i < 50; i++) {
          if (this.report['ra' + i] == null) {
            this.report['ra' + i] = '0'
          }
          if ([24, 25, 9, 11, 13, 15, 19, 20, 21, 22].includes(i)) {
            this.report['ra' + i] = this.report['ra' + i] ? (+this.report['ra' + i]).toFixed(0) : 0
          } else {
            // console.log(i)
            this.report['ra' + i] = this.report['ra' + i] ? (+this.report['ra' + i]).toFixed(2) : '0.00'
          }
          // console.log(5555, i, this.report['ra' + i])
          // this.report['ra' + i] = this.report['ra' + i] ? parseInt(this.report['ra' + i]) : ''
        }
        // console.log(11111, response.data.data, this.report)
      })
    },
    addUnit () {
      this.report.subordinate_unit_data.push('')
    },
    delUnit (i) {
      this.report.subordinate_unit_data.splice(i, 1)
    },
    addOffice () {
      this.report.office_data.push('')
    },
    delOffice (i) {
      this.report.office_data.splice(i, 1)
    },
    showAmount (name) {
      let o = this.countClassData.find(item => item.name === name) || { general_public_budget_count: '0.00' }
      return o.general_public_budget_count
    },
    save () {
      this.lock2 = true
      this.report.reasonset = JSON.stringify(this.reasonSet)
      this.report.projectset = JSON.stringify(this.projectSet)
      this.report.jxset = JSON.stringify(this.jxset)
      // this.report.reasonset = 1111
      saveReport({ report: this.report, project: this.projectList, is_submit: 0 }).then((res) => {
        if (res.data.code === 1) {
          this.$Message.success(res.data.msg)
        }
        this.lock2 = false
      })
    },
    submit () {
      this.lock3 = true
      saveReport({ report: this.report, project: this.projectList, is_submit: 1 }).then((res) => {
        if (res.data.code === 1) {
          this.$Message.success(res.data.msg)
          this.report.status = 2
        }
        this.lock3 = false
      })
    },
    cancel () {
      this.lock4 = true
      saveReport({ id: this.report.id, is_cancel: 1 }).then(res => {
        console.log(22222, res)
        if (res.data.code === 1) {
          this.$Message.success(res.data.msg)
          this.report.status = 1
        }
        this.lock4 = false
      })
    },
    changeType (val, index) {
      this.$set(this.projectList[index], 'type', val)
      this.$forceUpdate()
    },
    download () {
      this.lock = true
      downloadReport({ code: this.report.uniq_code }).then(res => {
        console.log(4444, res)
        let content = res.data
        // 组装a标签
        let date = new Date()
        console.log(date.getFullYear())
        let elink = document.createElement('a')
        // 设置下载文件名
        elink.download = date.getFullYear() + '年度' + this.report.district_name + this.report.institutions_name + '单位预算公开.docx'
        elink.style.display = 'none'
        let blob = new Blob([content], { type: '' })
        elink.href = URL.createObjectURL(blob)
        document.body.appendChild(elink)
        elink.click()
        document.body.removeChild(elink)
        this.lock = false
      })
    }
  }
}
</script>
<style scoped lang="less">
.report{
  overflow: scroll;
  height: ceil(90vh) ;
  margin: 50px 0 0 50px;
  min-width: 1024px;
  .ivu-card-head p{
    text-align: center;
    font-weight: bold;
    font-size: 22px;
    height: 30px;
    line-height: 30px;
  }
  // .ivu-collapse-header{
  //   text-align: center;
  // }
  .panel_title{
    font-weight: bold;
    font-size: 20px;
    text-align: center;
  }
  .ivu-collapse-content-box p{
    font-size: 18px;
    line-height: 30px;
  }
  .sub_title{
    font-weight: bold;
    font-size: 18px;
    line-height: 42px !important;
    text-indent: 2em;
  }
  .indent{
    text-indent: 2em;
    line-height: 40px !important;
  }
  .table_content{
    .table_title{
      text-align: center;
      font-size: 18px;
      font-weight: bold;
    }
    .desc{
      display: flex;
      justify-content: space-between;
    }
  }
  table{
      width: 100%;
      border: 1px solid #EBEEF5;border-collapse: collapse;
      tr{
        height: 30px;
        line-height: 30px;
      }
      th{
        border: 1px solid #EBEEF5;border-collapse: collapse;
        background: #F5F7FA;
      }
      td{
        border: 1px solid #EBEEF5;border-collapse: collapse;
        padding: 0 10px;
      }
    }
  .table1{
    td{
      width: 25%;
    }
    table td:nth-child(even) {
      text-align: right;
    }
  }
  .table7{
    overflow: scroll-x;
  }
}
.text-align-right{
  text-align: right;
}
.btn{
  padding: 100px 0;
  text-align: center;
  .ivu-btn{
    margin-top: 20px;
  }
}
.num_input{
  text-indent: 0;
  width: 100px;
  overflow: hidden;
  margin:0 10px;
}
.office_data{
  display: flex;
  justify-content: space-around;
  width: 70%;
  height: 60px;
  line-height: 60px;
}
.input-select{
  text-indent: 0;
  width: 100px;
}
.select-input{
  text-indent: 0;
  display: inline-table;
  width: 200px;
  margin: 0 20px;
}
.pl5{
  padding-left: 25px !important;
}
.textarea {
  width: 90%;
  margin-top: 10px;
}
.project{
  width: 94%;
  margin: 0 auto;
  margin-top: 20px;
  .input-prepend{
    width: 200px !important;
  }

}
.afters:before {
  content: '、';
}
.olddata {
  width: 90%;
  margin: 0 auto;
}
.projectp {
  padding-top: 10px !important;
}
.theader {
  background-color: #e8eaec;
}
</style>
